/* 简约风格导航栏样式 - 支持悬停展开 */
:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --medium-text: #7f8c8d;
    --light-text: #95a5a6;
    --border-color: #e1e8ed;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    border: none;
    margin-bottom: 20px;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-ite .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--light-bg) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-item .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-item .nav-link.active::after {
    display: none;
}

/* 悬停菜单样式 */
.dropdown-menu {
    min-width: 180px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-top: 0;
    border: none;
    padding: 0;
    background-color: #ffffff;
    transition: var(--transition);
}

.dropdown-menu:hover {
    box-shadow: var(--hover-shadow);
}

.dropdown-item {
    padding: 0;
}

.dropdown-item > a {
    padding: 12px 18px;
    color: var(--dark-text);
    display: block;
    text-align: left;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item > a:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.dropdown-item:last-child > a {
    border-bottom: none;
}

.dropdown-header {
    padding: 12px 18px;
    font-weight: 600;
    color: var(--medium-text);
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .navbar-nav .nav-item .nav-link {
        margin: 0 5px;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-item .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        min-width: 160px;
    }
}

/* 导航栏在移动端的样式 */
@media (max-width: 576px) {
    .navbar-collapse {
        max-height: none;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-item .nav-link {
        padding: 12px 0;
        margin: 0;
        border-radius: 0;
    }
    
    .navbar-nav .nav-item .nav-link:hover {
        background-color: var(--light-bg);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-top: none;
    }
    
    .dropdown-item > a {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-item:last-child > a {
        border-bottom: none;
    }
}